# 班级名,名字,年龄
# 学习 ,吃饭 , 交手机

class PythonStudents:
    classnumber = 'class : 1904'
    # classwhat = 'study'
    # what_beforeclass = 'handup_mobile'
    # what_afterclass = 'go to eat'
    def __init__(self,name,age):
        self.name = name
        self.age = age

    @classmethod
    def classwhat(cls):
        print('classwhat : study')
    @classmethod
    def what_beforeclass(cls):
        print('what_beforeclass : handup_mobile')
    @classmethod
    def what_afterclass(cls):
        print('what_afterclass : go to eat')
Mr_chenhuan = PythonStudents('陈欢','芳龄18')
print(Mr_chenhuan.name)
print(Mr_chenhuan.age)

print(PythonStudents.classnumber)
PythonStudents.classwhat()
PythonStudents.what_beforeclass()
PythonStudents.what_afterclass()




